<template>
	<view class="schedule-btn df jsc ac f28" @tap="clickNavigate">
		<image :src="plusImg" class="plus-img"></image>
		行动措施
	</view>
</template>
<script>
import plusImg from '@/static/img/plus.png'
export default {
	props: {
		dailyId: {
			type: String,
			default: '',
		},
		journalDetailId: {
			type: String,
			default: '',
		},
	},
	data() {
		return {
			plusImg,
		}
	},
	methods: {
		//跳转行动措施
		clickNavigate() {
			let date = new Date().getTime()
			const type = 2
			const { dailyId, journalDetailId } = this
			console.log(journalDetailId)
			uni.navigateTo({
				url: `/subPackagesLog/pages/workLog/schedule/create?date=${date}&type=${type}&dailyId=${dailyId}&journalDetailId=${journalDetailId}`,
			})
		},
	},
}
</script>
<style scoped lang="scss">
.schedule-btn {
	border: 2rpx $active-color solid;
	border-radius: 50rpx;
	text-align: center;
	width: 170rpx;
	height: 50rpx;
	line-height: 50rpx;
	color: $active-color;
	font-size: 28rpx;
}
.plus-img {
	width: 30rpx;
	height: 30rpx;
	margin-right: 6rpx;
}
</style>
